package userlogic

import (
	"context"
	"gitee.com/liuxuezhan/ar-platform/assets-rpc/internal/dao/model/user"

	"gitee.com/liuxuezhan/ar-platform/assets-rpc/internal/svc"
	"gitee.com/liuxuezhan/ar-platform/assets-rpc/rpc"

	"github.com/zeromicro/go-zero/core/logx"
)

type PartnerRewardsListPageLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewPartnerRewardsListPageLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PartnerRewardsListPageLogic {
	return &PartnerRewardsListPageLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

func (l *PartnerRewardsListPageLogic) PartnerRewardsListPage(in *rpc.PartnerRewardsPageRequest) (*rpc.PartnerRewardsPageResponse, error) {
	return user.NewPartnerRewardsModel(l.ctx, l.svcCtx.Db).PartnerRewardsPage(in)

}
